package imageviewer.domain;

import java.sql.Date;

public class MyDate implements Comparable<MyDate> {

	private String formatedDate = "";
	
	private Date date = null;
	
	public MyDate(String formatedDate, Date date){
		this.date = date;
		this.formatedDate = formatedDate;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getFormatedDate() {
		return formatedDate;
	}

	public void setFormatedDate(String formatedDate) {
		this.formatedDate = formatedDate;
	}

	public int compareTo(MyDate o) {
		return this.formatedDate.compareTo(o.formatedDate);
	}	
	
	
}
